package com.dense.kuiniu.bookborrow.business.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * @author Administrator
 * @date 2020/8/25
 */
public class ReturnData implements Parcelable {

    private ArrayList<BorrowBook> resultList;

    public ArrayList<BorrowBook> getResultList() {
        return resultList;
    }

    public void setResultList(ArrayList<BorrowBook> resultList) {
        this.resultList = resultList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(this.resultList);
    }

    public ReturnData() {
    }

    protected ReturnData(Parcel in) {
        this.resultList = in.createTypedArrayList(BorrowBook.CREATOR);
    }

    public static final Parcelable.Creator<ReturnData> CREATOR = new Parcelable.Creator<ReturnData>() {
        @Override
        public ReturnData createFromParcel(Parcel source) {
            return new ReturnData(source);
        }

        @Override
        public ReturnData[] newArray(int size) {
            return new ReturnData[size];
        }
    };
}